package com.ruoyi.util.entity;

import java.io.Serializable;

import com.ruoyi.util.enums.BaseEnumType;
import com.ruoyi.util.enums.GlobalDefine;

@SuppressWarnings("serial")
public class ReturnObject implements Serializable {
	private Integer codes = null; 
	private String message = null;
    private boolean status = true;
	private Object data = null;
	
	public ReturnObject() {
		this.codes = BaseEnumType.codes.OK.getId();
		this.status = true;
		this.message = GlobalDefine.SYS_OPERATESUCCESS_MSG;
	}
	
	public ReturnObject(Integer codes, String message) {
		this.codes = codes;
		this.message = message;
	}
	
	public ReturnObject(Integer codes, String message, boolean status) {
		this.codes = codes;
		this.message = message;
		this.status = status;
	}
	
	public void setInfo(Integer codes, String message) {
		this.codes = codes;
		this.message = message;
	}
	
	public void setInfo(Integer codes, String message, boolean status) {
		this.codes = codes;
		this.message = message;
		this.status = status;
	}
	
	public Integer getcodes() {
		return codes;
	}
	public void setcodes(Integer codes) {
		this.codes = codes;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	public Integer getCodes() {
		return codes;
	}

	public void setCodes(Integer codes) {
		this.codes = codes;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}

}
